import React from "react";
import style from "./style.module.scss";
import { withRouter } from "react-router-dom";

const Footer = ({ location }) => {
  if (["/404", "/login", "/register"].includes(location.pathname)) {
    return <div style={{ display: "none" }} />;
  }
  return (
    <div className={style.footer}>
      <p className={style.link}>合作、联系：1653399637@qq.com</p>
      <p className={style.copy}>
        CLITV &copy; 2019 Powered by{" "}
        <span style={{ color: "rgb(85, 153, 240)" }}>clicli-Go</span>+
        <span style={{ color: "rgb(89, 207, 220)" }}>React</span>
      </p>
      <p className={style.reg}>
        本站 <span style={{ color: "rgb(85, 153, 240)" }}>服务端</span> 由
        <span style={{ color: "rgb(240, 208, 85)", paddingRight: 0 }}>
          clicli
        </span>
        <span style={{ color: "rgb(102, 178, 108)" }}>开源API</span>提供
      </p>
    </div>
  );
};

export default withRouter(Footer);
